package Play;

import Book.book;
import Book.booklist;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dell
 * Date: 2023-11-29
 * Time: 18:17
 */
public class addplay implements Feature{
    @Override
    public void work(booklist Book) {
        System.out.println("addbook");
        Scanner scanner =new Scanner(System.in);
        String name=scanner.nextLine();
        String auther=scanner.nextLine();
        String typle=scanner.nextLine();
        int price=scanner.nextInt();
        int count= Book.getBooksize();
        book books=new book(name,auther,price,typle);
        Book.setterBook(count,books);
        Book.setBooksize(count+1);

    }
}